package yxy.apple.http.response;

import yxy.apple.http.HTTPException;

public class TextResponse extends HTTPResponse<String> {

	@Override
	protected String bodyToString(String body) {
		return body;
	}

	@Override
	protected String decodeBody(byte[] body) throws HTTPException {
		if (body != null) {
			return new String(body);
		} else {
			return null;
		}
	}
}
